package org.unc.linamania;

import java.util.Random;

public class PositionMap {
	
	private static PositionMap instance = null;
	
	Random randomX;
	Random randomY;
	
	protected PositionMap()
	{
		randomX = new Random();
		randomY = new Random();
	}
	
	public static PositionMap getInstance()
	{
		if (instance == null)
		{
			instance = new PositionMap();
		}
		return instance;
	}
	
	public int getX()
	{
		return randomX.nextInt(650)+20;
	}
	
	public int getY()
	{
		return randomY.nextInt(550)+20;
	}

}
